package shoooter.entity.nonimage;


import shoooter.geometry.Vec2;
import shoooter.entity.nonimage.NonImageEntity;
import java.awt.*;


public class Projectile extends NonImageEntity {

    int FIX_SPE = 2;

    //final int N = 1, E = 2, S = 3, O = 4;

    public Projectile(Vec2 vPos, Vec2 vSpe) {
        this.vPos = vPos;
        this.vSpe = vSpe;
        this.vAcc = Vec2.nullVec2();
        this.setColor(Color.red);
        this.setBordercolor(Color.black);
    }

    public void draw(Graphics2D g2d) {
        g2d.setColor(this.getColor());
        g2d.fillOval((int) this.getX() - 2, (int) this.getY() -2, 4, 4);
        g2d.setColor(this.getBordercolor());
        g2d.drawOval((int) this.getX() - 2, (int) this.getY() -2, 4, 4);
    }

}
